package com.chixing.ih.module.task.service.impl;

import com.chixing.ih.module.task.mapper.ChargeBackMapper;
import com.chixing.ih.module.task.pojo.ChargeBack;
import com.chixing.ih.module.task.service.IChargeBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 目的:
 *
 * @author ：zcw
 * @version: 1.0  2020/10/8 22:32
 */
@Service
@Transactional
public class ChargeBackServiceImpl implements IChargeBackService {

    @Autowired
    private ChargeBackMapper chargeBackMapper;

    @Override
    public int saveOne(ChargeBack chargeBack) {
        return chargeBackMapper.saveOne(chargeBack);
    }

    @Override
    public int deleteOne(Long changeBackId) {
        return chargeBackMapper.deleteOne(changeBackId);
    }

    @Override
    public int updateOne(ChargeBack chargeBack) {
        return chargeBackMapper.updateOne(chargeBack);
    }

    @Override
    public ChargeBack findOne(Long changeBackId) {
        return chargeBackMapper.findOne(changeBackId);
    }

    @Override
    public List<ChargeBack> findAll() {
        return chargeBackMapper.findAll();
    }
}
